package com.link.base.base.message.dao.mybatis.mapper;

import com.link.base.base.message.model.MessageReceiver;
import com.link.base.base.user.model.User;
import com.link.core.basic.dao.mapper.BasicMapper;

import java.util.List;

/**
 * 消息发布-接收对象-消息发布维护接收用户 
 *
 * @author ouyangzhenqiang
 * @date 2019/07/25 13:54
 */
public interface MessageReceiverMapper extends BasicMapper<MessageReceiver> {
    
    /**
     * 查询未维护到消息接收人中的用户
     * 
     * @author ouyangzhenqiang
     * @date 2019/07/25 14:15
     * @param record
     */
    List<User> queryUnSelectUserListPage(MessageReceiver record) throws Exception;
    
    /**
     * 通过消息Id查询消息接收人
     * 
     * @author ouyangzhenqiang
     * @date 2019/07/25 18:06
     */
    List<MessageReceiver> getReceiverListByMsgId(MessageReceiver record) throws Exception;
}
